//
//  ArrowsCell.m
//  Maintenance
//
//  Created by tox on 2017/9/16.
//  Copyright © 2017年 com.kaopudian. All rights reserved.
//

#import "ArrowsCell.h"

@interface ArrowsCell ()

@end

@implementation ArrowsCell
- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.userInteractionEnabled = YES;
        self.accessoryView = nil;
        self.editingAccessoryView = nil;
        self.shouldIndentWhileEditing = NO;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}
- (void)awakeFromNib{
    [super awakeFromNib];
    ViewRadius(self.headImage, 35*0.5);
    
}

- (void)setDic:(NSDictionary *)dic{
    NSString *key = [dic allKeys].lastObject;
    self.titleLab.text = key;
    UIImage *img = [UIImage imageNamed:[dic valueForKey:key]];
    [self.headImage setImage:img forState:UIControlStateNormal];
}

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *cellID = @"ArrowsCell";
    ArrowsCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (!cell) {
        cell = [[NSBundle mainBundle]loadNibNamed:cellID owner:self options:nil].lastObject;
    }
    return cell;
}

@end
